class MenuBackend:
    """Backend logic for menu management"""
    
    def __init__(self):
        pass
    
    def get_available_modules(self, user_type):
        """Get available modules based on user type"""
        if user_type == 'root':
            return [
                'Patient Registration',
                'Room Allocation', 
                'Employee Registration',
                'Appointment Booking',
                'Billing'
            ]
        else:
            return [
                'Patient Registration',
                'Room Allocation',
                'Employee Registration', 
                'Appointment Booking',
                'Billing'
            ]
    
    def validate_user_access(self, user_type, module):
        """Validate if user has access to a specific module"""
        if user_type == 'root':
            return True  # Root has access to everything
        elif user_type == 'admin':
            return True  # Admin has access to all modules
        else:
            return False  # Other users have limited access

